package com.xinpu.service.impl;

import com.xinpu.mapper.DataAnalysisMapper;
import com.xinpu.service.DataAnalysisService;
import com.xinpu.vo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataAnalysisServiceImpl implements DataAnalysisService {
    @Autowired
    private DataAnalysisMapper dataAnalysisMapper;

    @Override
    public List<NewlyIncreasedUserOrClueVo> newlyIncreasedUser(String tenantId, Integer condition) {
        return dataAnalysisMapper.newlyIncreasedUser(tenantId, condition);
    }

    @Override
    public List<NewlyIncreasedUserOrClueVo> newlyIncreasedClue(String tenantId, Integer condition) {
        return dataAnalysisMapper.newlyIncreasedClue(tenantId, condition);
    }

    @Override
    public List<DataAnalysisStatusOrSourceVo> DataAnalysisStatus(String tenantId) {
        return dataAnalysisMapper.DataAnalysisStatus(tenantId);
    }

    @Override
    public List<DataAnalysisStatusOrSourceVo> DataAnalysisSource(String tenantId) {
        return dataAnalysisMapper.DataAnalysisSource(tenantId);
    }

    @Override
    public NewlyIncreasedUserOrClueVo newlyIncreasedUserX(Integer id, String date) {
        return dataAnalysisMapper.newlyIncreasedUserX(id, date);
    }

    @Override
    public NewlyIncreasedUserOrClueVo newlyIncreasedClueX(Integer id, String date) {
        return dataAnalysisMapper.newlyIncreasedClueX(id, date);
    }

    @Override
    public MonthDataVo monthDataVo(Integer id) {
        return dataAnalysisMapper.monthDataVo(id);
    }

    @Override
    public NewlyIncreasedUserOrClueVo quarterDate(Integer id, String date, String date1) {
        return dataAnalysisMapper.quarterDate(id, date, date1);
    }

    @Override
    public MonthDataVo clueMonthDataVo(Integer id) {
        return dataAnalysisMapper.clueMonthDataVo(id);
    }

    @Override
    public NewlyIncreasedUserOrClueVo clueQuarterDate(Integer id, String date, String date1) {
        return dataAnalysisMapper.clueQuarterDate(id, date, date1);
    }

    @Override
    public List<PhotoDataVo> PhotoP(String tenantId, Integer condition) {
        return dataAnalysisMapper.PhotoP(tenantId, condition);
    }

    @Override
    public List<OrderDateVo> OrderP(String tenantId, Integer condition) {
        return dataAnalysisMapper.OrderP(tenantId, condition);
    }

    @Override
    public CardDataVo cardData(Integer id, Integer type) {
        return dataAnalysisMapper.cardData(id, type);
    }

    @Override
    public Integer sum(Integer id, String tenantId, String date) {
        return dataAnalysisMapper.sum(id, tenantId, date);
    }

    @Override
    public Integer clueNum(Integer id, String tenantId, String date) {
        return dataAnalysisMapper.clueNum(id, tenantId, date);
    }

    @Override
    public Integer usereNum(Integer id, String tenantId, String date) {
        return dataAnalysisMapper.userNum(id, tenantId, date);
    }
}
